const mongoose = require('mongoose')
const Schema = mongoose.Schema
const ManagementTagSchemaConfig = {
  versionKey: false
}

const ManagementTagSchema = new Schema({
  name: String,
  announcement: { type: Boolean, default: false },
  resource: { type: Boolean, default: false },
  vote: { type: Boolean, default: false },
  registry: { type: Boolean, default: false },
  party: { type: Boolean, default: false },
  evaluation: { type: Boolean, default: false },
  bursary: { type: Boolean, default: false },
  dormitory: { type: Boolean, default: false },
  contrast: { type: Boolean, default: false },
  members: [{ type: Schema.Types.ObjectId, ref: 'User' }]
}, ManagementTagSchemaConfig)

exports = module.exports = ManagementTagSchema
